/*
 * Copyright (C) 2013 Fabiano Tarlao
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package easybenchmark;
import java.util.HashMap;
import org.easybenchmark.client.BenchmarkPool;
import org.easybenchmark.client.arbiter.ResultManager;

/**
 * Exectues simple single thread benchmarks
 * @author Fabiano Tarlao
 */
public class EasyBenchmark {
   
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
               BenchmarkPool benchMarkPool = new BenchmarkPool(System.getProperty("java.version"));
               ResultManager resultManager  = benchMarkPool.executeAllBenchmarks();
               System.out.println(resultManager.getCSVColumnNames());
               System.out.println(resultManager.toCSVString());
               System.out.println("\n"+benchMarkPool.getStatusMessages());
    }
    
    
    /**
     * Collect experimet results, experiment name and execution time
     */
    protected static HashMap<String, Long> results = new HashMap<String, Long>();
    
}
